import selenium
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import re
import os

# driver = webdriver.Chrome()
# driver.execute_script('document.getElementById("keyword").click();')
# element1 = driver.find_element(By.XPATH,'locator')
# driver.execute_script("arguments[0].click();", element1)

a = os.getcwd()
b = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(a)
print(b)

with open(r'./read.txt','r',encoding= 'utf-8') as file:
    a = file.read()
    b = file.readlines()
    c = a

str = r'aaa112345    234235 \n aaa'
a = re.findall('aaa(.+?)aaa', str, re.DOTALL)[0].replace('\n', '')
# a = re.DOTALL('aaa(.+?)aaa', str)
# print(a)

def count_remainder(start: int, end: int, divisor: int):
    list0 = []
    list1 = []
    # list2 = []
    for i in range(start, end+1):
        a = i%divisor
        if a == 0:
            list0.append(i)
            # print(i)
        if a ==2:
            print(i)
        else:
            list1.append('%d:%d'%(i, a))

            # print(i)
    # print(len(list0))
    return len(list0), list0, 'turandexiaoxi'

# a = count_remainder(1,101,divisor=3)
# print(a[2])


def bubble(lst):
    n = len(lst)
    for i in range(0, n):
        for j in range(0, n-1-i):
            if lst[j] > lst[j+1]:
                lst[j], lst[j + 1] = lst[j+1], lst[j]
    print(lst)

# bubble([1,64,45,26,17,112,22])
negative = ['300','400','500','502','200']
code = '200'
assert code in negative


timestamp= int(time.time())

print('/Screenshots/screenshot%s.png'%timestamp)


a= [38377,1235.44,15542,26000,13000]
total = 0
for i in a:
    total = total + i
    print(total)